package com.ozo.boot.manage.pojo.dto;

import com.ozo.boot.common.base.model.BaseValidDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.*;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
* 岗位
*
* @author qiangesoft
* @date 2024-11-16 23:43:39
* @version 1.0
*/
@Data
@Schema(description = "岗位保存对象")
public class SysPostSaveDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @NotNull(message = "主键不能为空", groups = BaseValidDTO.edit.class)
    @Schema(description = "id")
    private Long id;

    @Schema(description = "部门id")
    private Long deptId;

    @NotBlank(message = "岗位编码不能为空")
    @Schema(description = "岗位编码")
    private String postCode;

    @NotBlank(message = "岗位名称不能为空")
    @Schema(description = "岗位名称")
    private String postName;

    @NotNull(message = "排序号不能为空")
    @Schema(description = "排序号")
    private Integer orderNum;

    @Schema(description = "备注")
    private String remark;

    @NotBlank(message = "状态：1-启用 2-禁用不能为空")
    @Schema(description = "状态：1-启用 2-禁用")
    private String status;

}
